package qf.module.system.service.impl;

import org.springframework.stereotype.Service;
import qf.module.system.dao.SysRightsDao;
import qf.module.system.service.SysRightsService;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Title: SysRightsServiceImpl
 * @Author itmei
 * @Package qf.module.system.service.impl
 * @Date 2023/2/28 22:51
 * @description:
 */
@Service
public class SysRightsServiceImpl implements SysRightsService {

    @Resource
    private SysRightsDao sysRightsDao;

    @Override
    public List<String> queryRightsNameByUserId(Long userId) {
        return sysRightsDao.queryRightsNameByUserId(userId);
    }

    @Override
    public List<String> queryRightNamesByRoleId(Long roleId) {
        return sysRightsDao.queryRightNamesByRoleId(roleId);
    }
}
